run a python file from another python file

36

import subprocess
subprocess.call(" python script2.py 1", shell=True)
os.system('python my_file.py')
import fileB
fileB.my_func()
subprocess.Popen('python second.py')

Comments

Submit
0 Comments